<?php 
$time = time();
$key = \common\helper\HashHelper::getUploadHash($time);
?>
<!DOCTYPE HTML>
<html>
<head>
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>发布活动</title>
<link rel="stylesheet" type="text/css" href="<?=Yii::getAlias('@static')?>/wap/minisite/shares/css/style.css">
</head>
<body class="page_edit">
<header>
	<div class="header_left" id="back"><span class="icon icon_arr_l"></span></div>
    <h1>参与活动</h1>
</header>
<div class="share_title"><input type="text" maxlength="20" readonly placeholder="请输入商品品牌和名称" value="<?php echo $detail_info->c_name;?>"></div>
<div class="share_content">
	<textarea id="shareContent" maxlength="500" placeholder="输入你想说的话~"></textarea>
</div>
<div class="share_images">
	<div class="share_upfile add"></div>
    <div class="share_upfile add"></div>
    <div class="share_upfile add"></div>
</div>
<div class="share_submit">提交发布</div>
<script src="<?= Yii::getAlias('@static')?>/wap/common/js/jquery-2.2.0.min.js"></script>
<script src="<?= Yii::getAlias('@static')?>/wap/common/js/fastclick.min.js"></script>
<script src="<?= Yii::getAlias('@static')?>/wap/common/js/webuploader.min.js"></script>
<script src="<?= Yii::getAlias('@static')?>/wap/common/js/king.wap.js"></script>
<script src="<?= Yii::getAlias('@static')?>/wap/minisite/shares/js/join.js"></script>
<script>
var actId = "<?php echo $_GET["act_id"]?>";
var upImageUrl = "<?php echo common\helper\UrlManager::createUrl(Yii::$app->params['domains']['upload'],['upload/webupload','time'=>$time,'key'=>$key]);?>";
var joinUrl = "<?php echo Yii::$app->urlManager->createUrl("m-activity-show/join-activity");?>";
var activityUrl = "<?=Yii::$app->urlManager->createUrl(["m-activity-show/share-list",'activity_id'=>$detail_info->id]);?>";
</script>
<div style="display: none;">
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "//hm.baidu.com/hm.js?a52dc90ef87f9447cc988c4aaf719dba";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>
</div>
<!-- 微信分享文案,其他浏览器自动忽略 -->
<?= common\widgets\WeChatShareWidget::widget(['type'=>$this->context->layout_data]);?>
</body>
</html>
